// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
/* jshint esversion: 6 */
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'babel-polyfill'
import store from './store'
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper)

// ESLint 是一个开源的 JavaScript 代码检查工具，直接 eslint-disable 的作用是完全禁用ESLint进行检测，eslint的常用技巧之一
// new 一个对象，需要赋值给某个值（变量），用Vue实例化的时候，不需要赋值给值（变量），所以需要单独配置一条规则，给new Vue这行代码上面加这个注释，通过eslint-disable把这行代码规则的校验跳过。
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router, // router: router,
  store,
  components: { App },
  template: '<App/>'
})
